<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<script type="text/javascript">
    function clinicSchedulePage(n, s) {
        $("#pageNo1").val(n);
        $("#pageSize1").val(s);
        $("#searchFormRole").submit();
        return false;
    }

</script>
<header class="header navbar clearfix bb bg-default pl0 pr0">
    <div class="pull-left">
        <form:form id="searchFormRole" modelAttribute="clinicSchedule" style="padding-top:5px;padding-left:10px"
                   onsubmit="return loadDivForm('mainCenterDiv','searchFormRole','${ctx}/reg/clinicForRegist/createRegist');"
                   method="post" class="form-inline">
            <input id="pageNo1" name="pageNo" type="hidden" value="${clinicSchedulePage.pageNo}"/>
            <input id="pageSize1" name="pageSize" type="hidden" value="${clinicSchedulePage.pageSize}"/>

            <div class="form-group">
                星期 ：
                <form:select path="dayOfWeek" class="form-control" cssStyle="width: 110px;" htmlEscape="false">
                    <form:option value="" label="请选择"/>
                    <form:options items="${fns:getDictList('DAY_OF_WEEK')}" itemLabel="label" itemValue="value"
                                  htmlEscape="false"/>
                </form:select>
                    <%--时间 ：--%>
                    <%--<form:select path="timeDesc" class="form-control" htmlEscape="false" data-parsley-required="true">--%>
                    <%--<form:option value="" label="请选择"/>--%>
                    <%--<form:options items="${fns:getDictList('TIME_OF_DAY')}" itemLabel="label" itemValue="value" htmlEscape="false"/>>--%>
                    <%--</form:select>--%>

            </div>
            号别 ：
            <form:input path="clinicIndexName" style="width:100px;" htmlEscape="false" class="form-control"
                        maxlength="30" data-parsley-required="true"/>
            <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
        </form:form>
    </div>
</header>
<div class="content-wrap no-p">
    <div class="wrapper">
        <table id="clinicIndexTable" checkbox="true" class="table table-bordered mg-t datatable">
            <thead>
            <tr>
                <th style="width: 5%"><input type=checkbox id="clinicScheduleId"></th>
                <th>号别名称</th>
                <th>星期</th>
                <th>时间</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${clinicSchedulePage.list}" var="clinicSchedule">
                <tr style="text-align: center;">
                    <td style="width: 5%">
                        <input type="checkbox" value="${clinicSchedule.id}" name="clinicScheduleId">
                    </td>
                    <td>
                            ${clinicSchedule.clinicIndexName}
                    </td>
                    <td>
                            ${clinicSchedule.dayOfWeek}
                    </td>
                    <td>
                            ${clinicSchedule.timeDesc}
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
        <div class="pagination">${clinicSchedulePage}</div>
    </div>
</div>
